package cn.wolfcode.shop.consts;

/**
 * 管理常量的接口：因为变量的默认修饰符是 public static final
 */
public interface MQConstents {
    // 秒杀订单主题：所有的秒杀订单相关的细心都是发送到这个主题中的
    String SECKILL_ORDER_TOPIC = "SECKILL_ORDER_TOPIC";

    // 创建订单失败相关的常量
    String SECKILL_FAILED_TAG = "SECKILL_FAILED_TAG";
    // 发送创建订单失败消息的目的地
    String SECKILL_FAILED_DEST = "SECKILL_ORDER_TOPIC" + ":" + "SECKILL_FAILED_TAG";
    // 创建订单失败消费者组
    String SECKILL_FAILED_CONSUMER_GROUP = "SECKILL_FAILED_CONSUMER_GROUP";


    // 清除本地售完标记相关的常量
    String CLEAN_STOCKCOUNT_FLAG_TAG = "CLEAN_STOCKCOUNT_FLAG_TAG";
    // 清除本地售完标记消息的目的地
    String CLEAN_STOCKCOUNT_FLAG_DEST = "SECKILL_ORDER_TOPIC" + ":" + "CLEAN_STOCKCOUNT_FLAG_TAG";
    // 清除本地售完标记消费者组
    String CLEAN_STOCKCOUNT_FLAG_CONSUMER_GROUP = "CLEAN_STOCKCOUNT_FLAG_CONSUMER_GROUP";


    // 创建订单成功后延迟消息相关的常量
    String SECKILL_SUCCESS_DELAY_TAG = "SECKILL_SUCCESS_DELAY_TAG";
    // 发送创建订单消息的目的地
    String SECKILL_SUCCESS_DELAY_DEST = "SECKILL_ORDER_TOPIC" + ":" + "SECKILL_SUCCESS_DELAY_TAG";
    // 创建订单消费者组
    String SECKILL_SUCCESS_DELAY_CONSUMER_GROUP = "SECKILL_SUCCESS_DELAY_CONSUMER_GROUP";


    // 创建订单相关的常量
    String SECKILL_ORDER_TAG = "SECKILL_ORDER_TAG";
    // 发送创建订单消息的目的地
    String SECKILL_ORDER_DEST = "SECKILL_ORDER_TOPIC" + ":" + "SECKILL_ORDER_TAG";
    // 创建订单消费者组
    String SECKILL_ORDER_CONSUMER_GROUP = "SECKILL_ORDER_CONSUMER_GROUP";


    // 创建订单成功相关的常量
    String SECKILL_SUCCESS_TAG = "SECKILL_SUCCESS_TAG";
    // 发送创建订单消息的目的地
    String SECKILL_SUCCESS_DEST = "SECKILL_ORDER_TOPIC" + ":" + "SECKILL_SUCCESS_TAG";
    // 创建订单消费者组
    String SECKILL_SUCCESS_CONSUMER_GROUP = "SECKILL_SUCCESS_CONSUMER_GROUP";




}
